From 65b35457fdfde69fcc8aaed516a6406855c0dbbc Mon Sep 17 00:00:00 2001 From: Chun-wei Fan Date: Mon, 12 Apr 2021 17:58:46 +0800 Subject: [PATCH] meson.build: Check for F16C on 32-bit Visual Studio It is also possible to enable F16C instructions on 32-bit Visual Studio builds, so also check for the compiler's ability to build F16C code on Visual Studio 32-bit instead of just bailing out. --- meson.build | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/meson.build b/meson.build index 902bd72031..26cda67aba 100644 --- a/meson.build +++ b/meson.build @@ -692,10 +692,8 @@ if get_option('f16c').enabled() # if !defined(__amd64__) && !defined(__x86_64__) # error "F16C intrinsics are only available on x86_64" # endif -#elif defined (_MSC_VER) && !defined (_M_X64) && !defined (_M_AMD64) -# error "F16C intrinsics not supported on x86 MSVC builds" #endif -#if defined(__SSE__) || (_M_X64 > 0) +#if defined(__SSE__) || defined(_MSC_VER) # include #else # error "No F16C intrinsics available" -- 2.30.2